<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String listAction = request.getParameter("listAction");
%>
<s:if test="page!=null">
	<table width="100%" border="0" cellspacing="0" cellpadding="0"
		class="main_tab3">
		<tr>
			<th colspan="8" align="center">
				共
				<s:property value="page.totalRows" />
				条&nbsp; 每页显示&nbsp;
				<input type="text" style="width: 30px" maxlength="3"
					value="<s:property value="page.pageSize"/>" name="pageSize"
					id="pageSize"
					onKeyDown="if(event.keyCode==13){event.keyCode=null;if(!isNumber(this.value) || this.value<'1'){alert('必须输入正整数');}return (false)}">
				&nbsp;条 共
				<s:property value="page.getTotalPages()" />
				页&nbsp; 第
				<s:property value="page.curentPage" />
				页&nbsp;
				<s:if test="page.curentPage <= 1">
    			    首页 上一页
			    </s:if>
				<s:else>
					<a href="<%=listAction%>?currentPage=<s:property value='page.curentPage'/>&pageMethod=first&pageSize=<s:property value='page.pageSize'/>&whereClause=<s:property value='whereClause'/>">
						<font color="blue">首页</font> </a>
					<a href="<%=listAction%>?currentPage=<s:property value='page.curentPage'/>&pageMethod=previous&pageSize=<s:property value='page.pageSize'/>&whereClause=<s:property value='whereClause'/>">
						<font color="blue">上一页</font> </a>
				</s:else>
				<s:if test="page.curentPage >= page.getTotalPages()">
				     下一页 尾页
			    </s:if>
				<s:else>
					<a href="<%=listAction%>?currentPage=<s:property value='page.curentPage'/>&pageMethod=next&pageSize=<s:property value='page.pageSize'/>&whereClause=<s:property value='whereClause'/>">
						<font color="blue">下一页</font> </a>
					<a href="<%=listAction%>?currentPage=<s:property value='page.curentPage'/>&pageMethod=last&pageSize=<s:property value='page.pageSize'/>&whereClause=<s:property value='whereClause'/>">
						<font color="blue">尾页</font> </a>
				</s:else>
				跳到&nbsp;
				<input type="text" style="width: 40px" maxlength="9" name="toPagNum"
					id="toPagNum" size="1" value="" onKeyDown="" />
				&nbsp;页
				<input type="hidden" name="whereClause"
					value="<s:property value='whereClause'/>" />
				<input type="hidden" name="pageMethod" id="pageMethod" value="" />
				<input type="hidden" name="currentPage" id="currentPage" value="" />
				<a href="#" onclick="return goPage('<%=listAction%>');">GO</a>
			</th>
		</tr>
	</table>
</s:if>